/*-------------------------------------------------------------------------

***************** Modification History ***********************************
   @doc
   @module pcheck.h - Prototypes for check.c |
   @end
   
$Log: /SoftPay/SPK2SIM/Source/Include/pcheck.h $ 
 * 
 * 9     3/05/00 11:13p Jim_b4
 * Code Security scheme added to each significant source file
 * 
 * 8     2/24/00 5:05p Kevin_v1
 * GDS bug fix...
 * 
 * 7     2/21/00 3:00p Jim_b4
 * Include file restructuring
 * 
 * 6     1/04/00 3:06p Page_k1
 * Remove unused functions
 * 
 * 5     12/22/99 1:38p Page_k1
 * Make independent module
 * 
 * 4     12/22/99 8:24a Page_k1
 * Remove inCheckOperation
 * 
 * 3     10/20/99 10:39a Kevin_v1
 * Implemented IDLE_LOOP_OPERATION
 * 
 * 2     10/19/99 4:05p Kevin_v1
 * Install COLD_INIT_OPERATION
 * 
 * 1     7/19/99 5:30p Jim_b4
 * 
 * 1     7/19/99 4:06p Jim_b4
 * 
 * 3     7/12/99 2:19p Jim_b4
 * 
 * 2     6/09/99 11:17a Monique_b1
 * Change headers and file names for SP 2000
**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/
#ifndef PCHECK_H
#define PCHECK_H

#include <cct.h>

int	inColdInitCheckReader (TRANSACTION_OBJECT *pobTran);
int inEnterBirthdate(TRANSACTION_OBJECT *pobTran);
int inEnterStateCode(TRANSACTION_OBJECT *pobTran);
int inEnterZipCode(TRANSACTION_OBJECT *pobTran);
int inEnterCheckNumber(TRANSACTION_OBJECT *pobTran);
int inEnterCheckAcctNum(TRANSACTION_OBJECT *pobTran);
int inEnterManualDLN(TRANSACTION_OBJECT *pobTran);
int inEnterManualMICR(TRANSACTION_OBJECT *pobTran);
int inSwipeDLN(TRANSACTION_OBJECT *pobTran);
int inSwipeMICR(TRANSACTION_OBJECT *pobTran);
int inEitherDLN(TRANSACTION_OBJECT *pobTran);
int inEitherMICR(TRANSACTION_OBJECT *pobTran);
int inInitCheckReader (VS_BOOL fDisplay, CCT_REC *psrCCTRecLocal);
int inGetCheckReaderHandle (void);
int inCloseCheckReader (void);
void vdClearCheckDataRecord (TRANSACTION_OBJECT *pobTran);
int inValidateBirthdate (char *pchBirthdate);
int inValidateStateCode(char *pszStateCode);
int inValidateZipCode(char *pszZipCode);
int inValidateCheckNumber(char *pszCheckNumber);
int inValidateCheckAcctNum(char *pszCheckAcctNum);
int inValidateManualDLN(char *pszManualDLN);
int inValidateManualMICR(char *pszManualMICR);
int inValidateManualABA(char *pszManualABA);
int inOpenCheckReader(VS_BOOL fDisplay, CCT_REC *psrCCTRecLocal);
VS_BOOL fCKRDR_HIT (int hCheckReader, char *szDest);
int inReadCheckReader (int hCheckReader, char *szDest, int inOffset, int inLength);
int inAddCheckFunctions(void);
int CHECK_CODE_CHECK(char * a,char *b,short *  c,char * d,unsigned char * e);
int inEnterManualABA (TRANSACTION_OBJECT *pobTran);
int inSetStateCodeBirthdayCond(TRANSACTION_OBJECT *pobTran);
int inSetChkNumChkAcCond(TRANSACTION_OBJECT *pobTran);
int inResetFuncCond(TRANSACTION_OBJECT *pobTran);





#endif
